string_matrix_format

Syntax:

string_matrix_format(matrix, tot, dec)

Arguments:

Argument Name Type Description
matrixmatrixmatrix to convert
totrealThe total number of places of the main number to be shown
decrealThe number of decimal places to be included

Returns: (string)

Description:

Converts a matrix into an easily readable string with specific string formatting.

It is worth noting that the spacing method used to align the widths of each row in the matrix will not work when using GameMaker outputs such as show_message or show_debug_message. The reason for this is because the measurements used pull from the currently rendered font, not GameMaker's debugging font.

Back: Strings
Next: string_matrix_scientific